using System.ComponentModel.DataAnnotations;

namespace UpdaterManagement.Models
{
    public class VersionRelease
    {
        public int Id { get; set; }
        
        [Required]
        public string? ProductId { get; set; }
        
        [Required]
        public string? ProductName { get; set; }
        
        public int EnterpriseId { get; set; }
        
        public Enterprise? Enterprise { get; set; }
        
        [Required]
        public string? Version { get; set; }
        
        public string? Description { get; set; }
        
        public string? FilePath { get; set; }
        
        public string? ManualPath { get; set; }
        
        public string? VersionUrl { get; set; }
        
        public string? DeployType { get; set; }
        
        public DateTime CreatedTime { get; set; } = DateTime.Now;
        
        public bool IsActive { get; set; } = true;
    }
}